package com.zhl.media.app.mvp.adapter;

import android.content.Context;

import com.zhl.media.app.R;
import com.zhl.media.commonsdk.entity.AdJustMedia;
import com.zhy.adapter.abslistview.CommonAdapter;
import com.zhy.adapter.abslistview.ViewHolder;
import java.util.List;

public class AdjustListViewAdapter extends CommonAdapter<AdJustMedia> {

    public AdjustListViewAdapter(Context context, int layoutId, List<AdJustMedia> datas) {
        super(context, layoutId, datas);
    }
    @Override
    protected void convert(ViewHolder viewHolder, AdJustMedia item, int position) {
        viewHolder.setText(R.id.media_code,item.getAlphabetIdentification());
        viewHolder.setText(R.id.media_fangan,item.getSchemeName());
        viewHolder.setText(R.id.media_dydt,item.getUnitName()+"/"+item.getElevatorName());
        viewHolder.setText(R.id.media_pt,item.getInstallPosition());
        viewHolder.setText(R.id.proj_name,"楼盘：" + item.getProjectName());
        viewHolder.setText(R.id.louzuo,"楼座：" + item.getBuildingName());
        viewHolder.setText(R.id.danyuan,"单元：" + item.getUnitName());
        viewHolder.setText(R.id.dianti,"电梯：" + item.getElevatorName());
    }
}
